home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 4 / The 640 Meg Shareware Studio CD-ROM Volume IV (Data Express)(1994).ISO / clang / cenvid.zip / KEYSTUFF.BAT < prev    next >
DOS Batch File  |  1993-04-06  |  898b  |  30 lines

  1. @echo off
  2. REM KeyStuff - Short program to stuff up to 15 characters in the keyboard buffer
  3. if "%1"=="" GOTO INSTRUCTIONS
  4. if not "%2"=="" GOTO INSTRUCTIONS
  5.  
  6. REM check that the string is not longer that 15 characters
  7. cenvi return(strlen("%1"))
  8. if errorlevel 16 GOTO INSTRUCTIONS
  9.  
  10. REM poke characters into the keyboard buffer in low memory
  11. cenvi "n=strlen(s="%1") poke(0x41A,0x41E) poke(0x41C,0x41E+n*2) while(0<n--) poke(0x41E+n*2,s[n])"
  12.  
  13. GOTO FINI
  14.  
  15. :INSTRUCTIONS
  16. echo 
  17. echo KeyStuff - Stuff up to fifteen characters in the keyboard buffer
  18. echo  
  19. echo USAGE: KeyStuff String
  20. echo   Where String is fifteen or fewer bytes for the keyboard buffer
  21. echo  
  22. echo EXAMPLE:  The following batch file would start up BASIC.COM with the initial
  23. echo           command: Load "Truck"
  24. echo                 call KeyStuff Load\"Truck\"\r
  25. echo                 basica.com
  26. echo  
  27.  
  28.  
  29. :FINI
  30.